<template>
  <div>
    <span>{{ text }}</span>
  </div>
</template>

<script>
export default {
  data() {
    return {
      text: ''
    }
  },
  created() {
    this.initData()
  },
  methods: {
    initData() {
      this.axios({
        method: 'get',
        url: 'http://localhost:9999/system-management/tbRoomInfo/allRoominfoList'
      }).then((res) => {
        if (res.data.code) {
          this.text = res.data
        }
      })
    }
  }
}
</script>

<style scoped>

</style>
